/**
 * Created by john on 2015/11/11.
 */
window.onload=function(){
 /*loading*/
    document.getElementById('jiaZai').style.display='none';
/*提示音乐*/
    setTimeout(play,2000);
    function play()
    {
        var myAudio = new Audio("../audio/message.mp3");
        myAudio.play();
    }
}

//touch 滑动事件
touch.on('#main', 'swiperight', function(ev){
       $('#main').css('display','none');
       $('#main1').css('display','block');
});
/*touch.on('#main1', 'swipeup', function(ev){
       $('#main1').css('display','none');
       $('#main2').css('display','block');
});*/
$('.cnbtn').click(function(){
       $('#arrow').css('display','block');
       $('#main1').css('display','none');
})
/*touch.on('#main2', 'swipeup', function(ev){
       $('#main2').css('display','none');
       $('#main3').css('display','block');
});*/
touch.on('#main3', 'swipeup', function(ev){
		window.location.href = 'preliminaries.html';
});
var container = document.getElementById('slip');
var pages = document.querySelectorAll('.swipe-box');
var slip = Slip(container, 'y').webapp(pages);